|
|
第1行: |
第1行: |
| <!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> | | <includeonly><div id="home-gamebuild" class="home-card home-card--col2 home-card--row3"> |
| This template is used to show example template usage without expanding the template itself.
| | <div class="home-card__label">游戏版本</div> |
| | | <div class="home-gamebuild-patch__container> |
| == Basic use == | | <div class="home-gamebuild-patch"><span class="home-gamebuild-patch__name">[[{{Main page/settings|currentpatch}}|{{#invoke:String|match|{{Main page/settings|currentpatch}}|[%a%s]+(%d+%.%d+%.%d+)}}]]</span><span class="home-gamebuild-patch__type home-gamebuild-patch__type--{{lc:{{Main page/settings|currentpatchtype}}}}">{{Main page/settings|currentpatchtype}}</span></div> |
| ''(Note: In the following examples, [[Ellipsis|ellipses (groups of three dots)]] indicate where parameters have been omitted.)''
| | <div class="home-gamebuild-patch__arrow">➡</div> |
| | | <div class="home-gamebuild-patch"><span class="home-gamebuild-patch__name">[[{{Main page/settings|nextpatch}}|{{#invoke:String|match|{{Main page/settings|nextpatch}}|[%a%s]+(%d+%.%d+%.%d+)}}]]</span><span class="home-gamebuild-patch__type home-gamebuild-patch__type--{{lc:{{Main page/settings|nextpatchtype}}}}">{{Main page/settings|nextpatchtype}}</span></div> |
| : {{tlx|tlx|Template|''first parameter''|''second parameter''|''third''|...|''twentieth''}} produces: {{tlx|Template|''first parameter''|''second parameter''|''third''|...|''twentieth''}}
| | </div> |
| | | <div class="home-gamebuild-links home-link"> |
| Where parameters might contain one or more equals-signs ("="), replace each equals-sign with {{tlf|{{=}}}}:
| | <div class="home-link__button">[[Patch notes|补丁说明]]</div> |
| : {{tlx|tlx|Template|''first''<nowiki>{{=}}</nowiki>''something''|''second''|''third''<nowiki>{{=}}</nowiki>''something''|...|twentieth}} produces: {{tlx|Template|''first{{=}}something''|''second''|''third{{=}}something''|...|''twentieth''}}
| | <div class="home-link__button">[https://robertsspaceindustries.com/roadmap/release-view 路线图]</div> |
| | | <div class="home-link__button">[https://robertsspaceindustries.com/spectrum/community/SC/forum/1?page=1&sort=newest 公告]</div> |
| For more than ten parameters, possibly also containing equals-signs, use {{tag|nowiki}} thus:
| | <div class="home-link__button">[https://issue-council.robertsspaceindustries.com/ 问题理事会]</div> |
| : {{tlx|tlx|Template|<nowiki><nowiki>''first''|''second''|''third=something''|...|''999th''</nowiki></nowiki>}} produces: {{tlx|Template|<nowiki>first|second|third=something|...|999th</nowiki>}} | | </div> |
| | | </div> |
| <!-- | | <templatestyles src="Template:Main page/gamebuild/styles.css"/></includeonly><noinclude>{{/doc}}</noinclude> |
| ==TemplateData==
| |
| {{collapse top|[[Wikipedia:TemplateData|TemplateData]] documentation used by [[Wikipedia:VisualEditor|VisualEditor]] and other tools}}
| |
| {{TemplateData header|noheader=1}}
| |
| <templatedata> | |
| {
| |
| "params": {
| |
| "1": {
| |
| "label": "Template name",
| |
| "description": "Name of the template to link.",
| |
| "example": "Tlx",
| |
| "type": "wiki-template-name",
| |
| "required": true
| |
| },
| |
| "2": {
| |
| "label": "1st parameter",
| |
| "type": "string"
| |
| },
| |
| "3": {
| |
| "label": "2nd parameter",
| |
| "type": "string"
| |
| },
| |
| "4": {
| |
| "label": "3rd parameter",
| |
| "type": "string"
| |
| },
| |
| "5": {
| |
| "label": "4th parameter",
| |
| "type": "string"
| |
| },
| |
| "6": {
| |
| "label": "5th parameter",
| |
| "type": "string"
| |
| },
| |
| "7": {
| |
| "label": "6th parameter",
| |
| "type": "string"
| |
| },
| |
| "8": {
| |
| "label": "7th parameter",
| |
| "type": "string"
| |
| },
| |
| "9": {
| |
| "label": "8th parameter",
| |
| "type": "string"
| |
| },
| |
| "10": {
| |
| "label": "9th parameter",
| |
| "type": "string"
| |
| },
| |
| "11": {
| |
| "label": "10th parameter",
| |
| "type": "string"
| |
| },
| |
| "12": {
| |
| "label": "11th parameter",
| |
| "type": "string"
| |
| },
| |
| "13": {
| |
| "label": "12th parameter",
| |
| "type": "string"
| |
| },
| |
| "14": {
| |
| "label": "13th parameter",
| |
| "type": "string"
| |
| },
| |
| "15": {
| |
| "label": "14th parameter",
| |
| "type": "string"
| |
| },
| |
| "16": {
| |
| "label": "15th parameter",
| |
| "type": "string"
| |
| },
| |
| "17": {
| |
| "label": "16th parameter",
| |
| "type": "string"
| |
| },
| |
| "18": {
| |
| "label": "17th parameter",
| |
| "type": "string"
| |
| },
| |
| "19": {
| |
| "label": "18th parameter",
| |
| "type": "string"
| |
| },
| |
| "20": {
| |
| "label": "19th parameter",
| |
| "type": "string"
| |
| },
| |
| "21": {
| |
| "label": "20th parameter",
| |
| "type": "string"
| |
| },
| |
| "subst": {
| |
| "description": "Set to any value to show \"subst:\" before the template name",
| |
| "example": "true",
| |
| "type": "boolean",
| |
| "label": "Show subst:"
| |
| },
| |
| "LANG": {
| |
| "label": "Language",
| |
| "description": "The prefix for a link to Wikipedias in other languages.",
| |
| "example": "de:",
| |
| "type": "line"
| |
| },
| |
| "SISTER": {
| |
| "description": "The prefix for an interwiki link to other sister projects",
| |
| "example": "M:",
| |
| "type": "line",
| |
| "label": "Sister project"
| |
| }
| |
| },
| |
| "description": "Show example template usage without expanding the template itself. {{tnull}} is similar without linking the template.",
| |
| "paramOrder": [
| |
| "1",
| |
| "2",
| |
| "3",
| |
| "4",
| |
| "5",
| |
| "6",
| |
| "7",
| |
| "8",
| |
| "9",
| |
| "10",
| |
| "11",
| |
| "12",
| |
| "13",
| |
| "14",
| |
| "15",
| |
| "16",
| |
| "17",
| |
| "18",
| |
| "19",
| |
| "20",
| |
| "21",
| |
| "subst",
| |
| "LANG",
| |
| "SISTER"
| |
| ],
| |
| "format": "inline"
| |
| }
| |
| </templatedata> | |
| -->
| |
| | |
| == See also == | |
| * {{WP|ref=no|Template:Tlx}}
| |
| | |
| <noinclude>[[Category:Template documentation]]</noinclude>
| |
| <includeonly>
| |
| <!-- Template catergories go here --> | |
| [[Category:Internal link templates]]
| |
| </includeonly> | |