Template:This is a: Difference between revisions
Jump to navigation
Jump to search
(Set missing default of {{{icon}}} to 0. Removed duplicate game icon if {{{icon}}} is not 0. Removed several unnecessary #ifs, especially concerning {{{nocat}}}. Increased readability.) |
m (Added missing default value for {{{cut}}}. Comparing it against 0.) |
||
Line 28: | Line 28: | ||
}}<!-- | }}<!-- | ||
--> is a<!-- | --> is a<!-- | ||
-->{{#ifeq:{{{cut}}}| | -->{{#ifeq:{{{cut|0}}}|0|| cut}}<!-- | ||
--> {{#switch:{{{1}}}<!-- Please leave it like this, it's infinitely easier to edit. (also, allows languages that would've had incompatible sentence ordering to be added.) --> | --> {{#switch:{{{1}}}<!-- Please leave it like this, it's infinitely easier to edit. (also, allows languages that would've had incompatible sentence ordering to be added.) --> | ||
|#default = {{#switch:{{{internal|}}} | |#default = {{#switch:{{{internal|}}} | ||
Line 105: | Line 105: | ||
}}<!-- | }}<!-- | ||
-->是一个<!-- | -->是一个<!-- | ||
-->{{#ifeq:{{{cut}}}| | -->{{#ifeq:{{{cut|0}}}|0||被移除的}}{{#switch:{{{1}}} | ||
|#default = {{#switch:{{{internal|}}} | |#default = {{#switch:{{{internal|}}} | ||
|#default= | |#default= | ||
Line 390: | Line 390: | ||
++ Cut entities ++ | ++ Cut entities ++ | ||
-->{{#ifeq:{{{cut}}}|0||{{Main other|[[Category:Cut Entities]]|}}}}<!-- | -->{{#ifeq:{{{cut|0}}}|0||{{Main other|[[Category:Cut Entities]]|}}}}<!-- | ||
-->}}<!-- end if nocat != 0 | -->}}<!-- end if nocat != 0 |
Revision as of 00:51, 18 September 2023
Todo: Use a strings subpage to reduce duplication, aswell to clean up Autolang in the code, moving all translations to strings subpage.
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.