Difference between pages "Template:Unlink/doc" and "Template:Latest set/OCG/Chinese"

From Yugipedia
< Template:Unlink(Difference between pages)
Jump to: navigation, search
({{Nolink}})
 
 
Line 1: Line 1:
{{Documentation subpage}}
+
<noinclude><templatestyles src="Yugipedia:Main Page/styles.css" />
<!-- PLEASE ADD CATEGORIES AT THE BOTTOM OF THIS PAGE -->
+
</noinclude>{{ #arraydefine: @sets | {{ #ask: [[Medium::OCG]][[Page type::Set page]][[!~*Entry Pack*]][[!~*Enhancement Pack*]][[Set type::Booster pack||Structure Deck||Starter Deck]][[Simplified Chinese release date::<{{CURRENTMONTHNAME}} {{CURRENTDAY}}, {{CURRENTYEAR}}]] |link=none |limit=3 |sort=Simplified Chinese release date |order=descending |searchlabel=}} }}
 
+
<div class="main-page-set-release">
{{t|Unlink}} is a template that automatically unlinks input, and returns the target of the first link. It takes a single unnamed parameter.
+
<h3>''[[Yu-Gi-Oh! Official Card Game|<span style="color:#000">OCG</span>]]'' (China)</h3>
 
+
{{ #ask: [[Page name::{{#if: {{#pos:{{#show: {{#arrayindex:@sets|0}} | ?Simplified Chinese release date#LOCL}}|,}}
=== Usage ===
+
  | {{#arrayindex:@sets|0}}
{| class="wikitable"
+
  | {{#if: {{#pos:{{#show: {{#arrayindex:@sets|1}} | ?Simplified Chinese release date#LOCL}}|,}}
|-
+
  | {{#arrayindex:@sets|1}}
! scope="col" | Code
+
  | {{#arrayindex:@sets|2}}
! scope="col" | Output
+
  }}
! scope="col" | Notes
+
  }}]]
|-
+
  |?Set image
| <code><nowiki>{{Unlink|test}}</nowiki></code>
+
  |?Simplified Chinese release date#LOCL
| {{Unlink|test}}
+
  | format      = template
| Unlinked input shouldn't change
+
  | template   = Set portal
|-
+
  | link        = none
| <code><nowiki>{{Unlink|[[test]]}}</nowiki></code>
+
  | searchlabel =
| {{Unlink|[[test]]}}
+
}}</div>
| A single link gets unlinked
 
|-
 
| <code><nowiki>{{Unlink|[[test|word]]}}</nowiki></code>
 
| {{Unlink|[[test|word]]}}
 
| Only the link target is returned, custom link text is discarded
 
|-
 
| <code><nowiki>{{Unlink|[[test]]ing}}</nowiki></code>
 
| {{Unlink|[[test]]ing}}
 
| Link postfixes are also discarded...
 
|-
 
| <code><nowiki>{{Unlink|[[test]] words}}</nowiki></code>
 
| {{Unlink|[[test]] words}}
 
| ...as is any following text...
 
|-
 
| <code><nowiki>{{Unlink|wordy [[test]]}}</nowiki></code>
 
| {{Unlink|wordy [[test]]}}
 
| ...and any preceding text
 
|-
 
| <code><nowiki>{{Unlink|[[test]]ing some [[links]]}}</nowiki></code>
 
| {{Unlink|[[test]]ing some [[links]]}}
 
| Only the first link is returned
 
|-
 
|}
 
 
 
=== See also ===
 
* {{t|Autolink}}, a template that links input while handling bold, italics, and unlinked quotes
 
* {{t|Nolink}}, a template that prevents automatic linking by {{t|Autolink}}
 
 
 
<includeonly>
 
<!-- CATEGORIES HERE, THANKS -->
 
[[Category:Templates]]
 
</includeonly>
 

Revision as of 08:36, 2 April 2023

OCG (China)

[[File:{{{Set image}}}|180x200px|center|link={{{Name}}}]]
[[{{{Name}}}|{{{Name}}}]]