Template:This is a: Difference between revisions
Jump to navigation
Jump to search

Consider discussing changes on the talk page before implementing them.
(I don't know why this template was still being used here, this should hopefully make it clearer that the problem is a template not existing) |
Tag: Undo |
||
| (45 intermediate revisions by 5 users not shown) | |||
| Line 1: | Line 1: | ||
{{High-use| | {{High-use|approx=2,800}} | ||
{{Documentation}} | |||
<includeonly> | |||
<onlyinclude><!-- | <onlyinclude><!-- | ||
| Line 7: | Line 11: | ||
|{{yesno|{{{notitlechange|no}}} | |{{yesno|{{{notitlechange|no}}} | ||
|yes = | |yes = | ||
|no = {{DISPLAYTITLE:{{{name}}}|noerror}} | |no = {{DISPLAYTITLE:{{mono|{{{name}}}}}|noerror}} | ||
}} | }} | ||
}}<!-- | }}<!-- | ||
| Line 14: | Line 18: | ||
-->{{yesno|{{{sprite|no}}} | -->{{yesno|{{{sprite|no}}} | ||
|yes = [[File:{{{name|{{SUBPAGENAME}} }}}.png|left|link=]] | |yes = [[File:{{{name|{{SUBPAGENAME}} }}}.png|left|{{{spritesize|64px}}}|link=]] | ||
|def = [[File:{{{sprite}}}|left|link=]] | |def = [[File:{{{sprite}}}|left|{{{spritesize|64px}}}|link=]] | ||
}}<!-- | }}<!-- | ||
| Line 27: | Line 31: | ||
All the actual text | All the actual text | ||
-->{{this is a/strings|this is a | -->{{this is a/strings|this is a|plural={{#if:{{{name1|}}}|1}} | ||
|this = {{#if:{{{name|}}} | |this = {{#if:{{{name|}}}<!-- | ||
-->|{{this is a/strings|list | |||
|<code>{{{name}}}</code><!-- | |||
-->|{{#if:{{{name1|}}}|<code>{{{name1}}}</code> }}<!-- | |||
-->|{{#if:{{{name2|}}}|<code>{{{name2}}}</code> }}<!-- | |||
-->|{{#if:{{{name3|}}}|<code>{{{name3}}}</code> }}<!-- | |||
-->|{{#if:{{{name4|}}}|<code>{{{name4}}}</code> }}<!-- | |||
-->|{{#if:{{{name5|}}}|<code>{{{name5}}}</code> }} }} | |||
|{{yesno|{{{this}}}|yes={{{this|{{this is a/strings|this}} }}} }} <!-- If the parameter "this" is defined as anything except a 0, no etc., then it reads as a translation of the word "this" --> | |{{yesno|{{{this}}}|yes={{{this|{{this is a/strings|this}} }}} }} <!-- If the parameter "this" is defined as anything except a 0, no etc., then it reads as a translation of the word "this" --> | ||
}} | }} | ||
| Line 40: | Line 50: | ||
-->|dx95|dx90c={{Dx95}} | -->|dx95|dx90c={{Dx95}} | ||
}} | }} | ||
|cut = {{yesno|{{{cut|}}}|yes={{this is a/strings|cut}} }} | |||
|internal = {{yesno|{{{internal|}}}|yes={{this is a/strings|internal}} }} | <!-- The type and whether the word is plural are passed so the sentence can be properly conjugated in appropriate languages --> | ||
|cut = {{yesno|{{{cut|}}}|yes={{this is a/strings|cut|type={{{1}}}|plural={{#if:{{{name1|}}}|1}} }} }} | |||
|internal = {{yesno|{{{internal|}}}|yes={{this is a/strings|internal|type={{{1}}}|plural={{#if:{{{name1|}}}|1}} }} }} | |||
|semi-internal = {{yesno|{{{semi-internal|}}}|yes={{this is a/strings|semi-internal|type={{{1}}}|plural={{#if:{{{name1|}}}|1}} }} }} | |||
|type = {{if empty <!-- if not a valid type, default to whatever the parameter says --> | |type = {{if empty <!-- if not a valid type, default to whatever the parameter says --> | ||
|{{this is a/strings|type|{{{1}}} }} | |{{this is a/strings|type|{{{1}}}|plural={{#if:{{{name1|}}}|1}}}} | ||
|{{{1}}} | |{{{1}}} | ||
}} | }} | ||
<!-- Pass the type parameter for conjugation --> | |||
|type-param = {{{1|}}} | |||
| Line 101: | Line 117: | ||
|yes = | |yes = | ||
|no = {{#if:{{this is a/strings|type|{{{1}}} }} | |no = {{#if:{{this is a/strings|type|{{{1}}} }} | ||
|{{#if:{{{game|}}} |{{this is a/category|{{{1}}}|in={{{game}}} |cut={{{cut|}}}|internal={{{internal|}}} }} }}<!-- | |{{#if:{{{game|}}} |{{this is a/category|{{{1}}}|in={{{game}}} |cut={{{cut|}}}|internal={{{internal|}}}|semi-internal={{{semi-internal|}}}|no-non-int={{{no-non-int|}}} }} }}<!-- | ||
-->{{#if:{{{game1|}}}|{{this is a/category|{{{1}}}|in={{{game1}}}|cut={{{cut|}}}|internal={{{internal|}}} }} }}<!-- | -->{{#if:{{{game1|}}}|{{this is a/category|{{{1}}}|in={{{game1}}}|cut={{{cut|}}}|internal={{{internal|}}}|semi-internal={{{semi-internal|}}}|no-non-int={{{no-non-int|}}} }} }}<!-- | ||
-->{{#if:{{{game2|}}}|{{this is a/category|{{{1}}}|in={{{game2}}}|cut={{{cut|}}}|internal={{{internal|}}} }} }}<!-- | -->{{#if:{{{game2|}}}|{{this is a/category|{{{1}}}|in={{{game2}}}|cut={{{cut|}}}|internal={{{internal|}}}|semi-internal={{{semi-internal|}}}|no-non-int={{{no-non-int|}}} }} }}<!-- | ||
-->{{#if:{{{game3|}}}|{{this is a/category|{{{1}}}|in={{{game3}}}|cut={{{cut|}}}|internal={{{internal|}}} }} }}<!-- | -->{{#if:{{{game3|}}}|{{this is a/category|{{{1}}}|in={{{game3}}}|cut={{{cut|}}}|internal={{{internal|}}}|semi-internal={{{semi-internal|}}}|no-non-int={{{no-non-int|}}} }} }}<!-- | ||
-->{{#if:{{{game4|}}}|{{this is a/category|{{{1}}}|in={{{game4}}}|cut={{{cut|}}}|internal={{{internal|}}} }} }}<!-- | -->{{#if:{{{game4|}}}|{{this is a/category|{{{1}}}|in={{{game4}}}|cut={{{cut|}}}|internal={{{internal|}}}|semi-internal={{{semi-internal|}}}|no-non-int={{{no-non-int|}}} }} }}<!-- | ||
-->{{#if:{{{game5|}}}|{{this is a/category|{{{1}}}|in={{{game5}}}|cut={{{cut|}}}|internal={{{internal|}}} }} }}<!-- | -->{{#if:{{{game5|}}}|{{this is a/category|{{{1}}}|in={{{game5}}}|cut={{{cut|}}}|internal={{{internal|}}}|semi-internal={{{semi-internal|}}}|no-non-int={{{no-non-int|}}} }} }}<!-- | ||
-->{{#if:{{{engine|}}} |{{this is a/category|{{{1}}}|in={{{engine}}} base |cut={{{cut|}}}|internal={{{internal|}}} }} }}<!-- | -->{{#if:{{{engine|}}} |{{this is a/category|{{{1}}}|in={{{engine}}} base |cut={{{cut|}}}|internal={{{internal|}}}|semi-internal={{{semi-internal|}}}|no-non-int={{{no-non-int|}}} }} }}<!-- | ||
-->{{#if:{{{engine1|}}}|{{this is a/category|{{{1}}}|in={{{engine1}}} base|cut={{{cut|}}}|internal={{{internal|}}} }} }}<!-- | -->{{#if:{{{engine1|}}}|{{this is a/category|{{{1}}}|in={{{engine1}}} base|cut={{{cut|}}}|internal={{{internal|}}}|semi-internal={{{semi-internal|}}}|no-non-int={{{no-non-int|}}} }} }}<!-- | ||
-->{{#if:{{{engine2|}}}|{{this is a/category|{{{1}}}|in={{{engine2}}} base|cut={{{cut|}}}|internal={{{internal|}}} }} }}<!-- | -->{{#if:{{{engine2|}}}|{{this is a/category|{{{1}}}|in={{{engine2}}} base|cut={{{cut|}}}|internal={{{internal|}}}|semi-internal={{{semi-internal|}}}|no-non-int={{{no-non-int|}}} }} }}<!-- | ||
-->{{#if:{{{series|}}}|{{this is a/category|{{{1}}}|in={{{series}}} series|cut={{{cut|}}}|internal={{{internal|}}} }} }}<!-- | -->{{#if:{{{series|}}}|{{this is a/category|{{{1}}}|in={{{series}}} series|cut={{{cut|}}}|internal={{{internal|}}}|semi-internal={{{semi-internal|}}}|no-non-int={{{no-non-int|}}} }} }}<!-- | ||
Add to Category:Source base (type) if game, engine, and series are all unspecified | Add to Category:Source base (type) if game, engine, and series are all unspecified | ||
-->{{#if:{{{game|}}}{{{engine|}}}{{{series|}}}||{{this is a/category|{{{1}}}|in=source base|cut={{{cut|}}}|internal={{{internal|}}} }} }}<!-- | -->{{#if:{{{game|}}}{{{engine|}}}{{{series|}}}||{{this is a/category|{{{1}}}|in=source base|cut={{{cut|}}}|internal={{{internal|}}}|semi-internal={{{semi-internal|}}}|no-non-int={{{no-non-int|}}} }} }}<!-- | ||
Add shaders to Category:Shaders | Add shaders to Category:Shaders | ||
| Line 134: | Line 150: | ||
Warning if {{{1}}} is not present | Warning if {{{1}}} is not present | ||
-- | -->{{#if:{{{1|}}}||{{warning|{{this is a/strings|missing parameter }} }} }}<!-- | ||
Warning if parameters such as {{{game}}} don't use the full name of a game, engine, etc. (e.g. if {{{game}}} is set to "hl2" instead of "Half-Life 2") | |||
-->{{#if:<!-- | |||
-->{{This is a/check name|param=game|arg={{{game|}}}}}<!-- | |||
-->{{This is a/check name|param=game1|arg={{{game1|}}}}}<!-- | |||
-->{{This is a/check name|param=game2|arg={{{game2|}}}}}<!-- | |||
-->{{This is a/check name|param=game3|arg={{{game3|}}}}}<!-- | |||
-->{{This is a/check name|param=game4|arg={{{game4|}}}}}<!-- | |||
-->{{This is a/check name|param=game5|arg={{{game5|}}}}}<!-- | |||
-->{{This is a/check name|param=engine|arg={{{engine|}}}}}<!-- | |||
-->{{This is a/check name|param=engine1|arg={{{engine1|}}}}}<!-- | |||
-->{{This is a/check name|param=engine2|arg={{{engine2|}}}}}<!-- | |||
-->{{#if:{{{series|}}}|{{This is a/check name|param=series|arg={{{series|}}} series}}}}<!-- | |||
-->|{{Warning|<!-- | |||
-->{{#if:{{{game|}}}|{{This is a/check name|param=game|arg={{{game|}}}}}|}}<!-- | |||
-->{{#if:{{{game1|}}}|{{This is a/check name|param=game1|arg={{{game1|}}}}}|}}<!-- | |||
-->{{#if:{{{game2|}}}|{{This is a/check name|param=game2|arg={{{game2|}}}}}|}}<!-- | |||
-->{{#if:{{{game3|}}}|{{This is a/check name|param=game3|arg={{{game3|}}}}}|}}<!-- | |||
-->{{#if:{{{game4|}}}|{{This is a/check name|param=game4|arg={{{game4|}}}}}|}}<!-- | |||
-->{{#if:{{{game5|}}}|{{This is a/check name|param=game5|arg={{{game5|}}}}}|}}<!-- | |||
-->{{#if:{{{engine|}}}|{{This is a/check name|param=engine|arg={{{engine|}}}}}|}}<!-- | |||
-->{{#if:{{{engine1|}}}|{{This is a/check name|param=engine1|arg={{{engine1|}}}}}|}}<!-- | |||
-->{{#if:{{{engine2|}}}|{{This is a/check name|param=engine2|arg={{{engine2|}}}}}|}}<!-- | |||
-->{{#if:{{{series|}}}|{{This is a/check name|param=series|arg={{{series|}}} series}}|}}<!-- | |||
--><br><small>{{This is a/strings|false warn}}</small><!-- | |||
-->}}<!-- | |||
-->{{ACategory|this is a template errors}}<!-- | |||
-->}}</onlyinclude> | |||
</includeonly> | |||
Latest revision as of 15:12, 13 September 2025
This template is used on approximately 2,800 pages and changes may be widely noticed.
Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage.Consider discussing changes on the talk page before implementing them.
The above documentation is transcluded from Template:This is a/doc. (Edit | Page history)
Editors can experiment in this template's sandbox (edit) and testcases (edit) pages.
Editors can experiment in this template's sandbox (edit) and testcases (edit) pages.
