Difference between revisions of "Template:School"
Jump to navigation
Jump to search
SurtrFan8511 (talk | contribs) m |
SurtrFan8511 (talk | contribs) (Improved code) |
||
Line 1: | Line 1: | ||
<includeonly><onlyinclude> | <includeonly><onlyinclude>{{#vardefine:school en name|{{#switch:{{{id|{{{1|{{{en name|{{{jp name|}}}}}}}}}}}} | ||
| 0 | None = None | | 0 | None = None | ||
| 1 | Unknown = Unknown | | 1 | Unknown = Unknown | ||
Line 26: | Line 26: | ||
|#default = School {{{id|{{{1|{{{en name|{{{jp name|}}}}}}}}}}}} | |#default = School {{{id|{{{1|{{{en name|{{{jp name|}}}}}}}}}}}} | ||
}}}}{{#ifeq:{{{link|true}}}|true|{{ | }}}}<!--Printing-->{{#ifeq:{{#var:school en name}}|Unknown|Unknown|{{#ifeq:{{{link|true}}}|true|[[{{#var:school en name}}]]|{{#var:school en name}}}}}}</includeonly></onlyinclude><noinclude>{{Documentation}}</noinclude> |
Revision as of 13:45, 7 October 2022
Description
This template translates transient school data from numeric IDs or jp text into English text and adds an optional hyperlink to the school page.
Usage
{{School|id=2}}
{{School|jp name=不死見学園}}
{{School|id=7|link=false}}
Daikanyama Academy
The above documentation is transcluded from Template:School/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |