Template:International Handball Federation/doc

Template:International Handball Federation/doc

update for archive parameter

← Previous revision Revision as of 02:55, 22 April 2026
Line 11: Line 11:
; Article name as [[link text]]
; Article name as [[link text]]
: {{{{BASEPAGENAME}} | ID }}
: {{{{BASEPAGENAME}} | ID }}
: {{{{BASEPAGENAME}} | ID | archive= NUMBER }}
: {{{{BASEPAGENAME}} | id= ID }}
: {{{{BASEPAGENAME}} | id= ID }}
: {{{{BASEPAGENAME}} | id= ID | archive= NUMBER }}


; Parameter as link text
; Parameter as link text
: {{{{BASEPAGENAME}} | ID | NAME }}
: {{{{BASEPAGENAME}} | ID | NAME }}
: {{{{BASEPAGENAME}} | ID | NAME | archive= NUMBER }}
: {{{{BASEPAGENAME}} | id= ID | name= NAME }}
: {{{{BASEPAGENAME}} | id= ID | name= NAME }}
: {{{{BASEPAGENAME}} | id= ID | name= NAME | archive= NUMBER }}


== Examples ==
== Examples ==


=== Unnamed parameters ===
=== Article name as link text ===
; Usage
; Usage in [[Bárbara Arenhart]]
: * {{{{BASEPAGENAME}} | 18019 | Bárbara Arenhart }}
: * {{{{BASEPAGENAME}} | 18019 }}
: * {{{{BASEPAGENAME}} | id= 18019 | archive= 20250120102452 }}


; Output
; Output
:* {{ {{BASEPAGENAME}} | 18019 | Bárbara Arenhart }}
:* {{ {{BASEPAGENAME}} | 18019 | Bárbara Arenhart }}
:* {{ {{BASEPAGENAME}} | id= 18019 | name= Bárbara Arenhart | archive= 20250120102452 }}


; URL in template
; Archived URLs in template
: [https://www.ihf.info/about/players/profiles/18019 https://www.ihf.info/about/players/profiles/{{Highlight|18019}}]</kbd> ([https://web.archive.org/web/20250120102452/https://www.ihf.info/about/players/profiles/18019/ archive])
: [https://web.archive.org/web/2025/https://www.ihf.info/about/players/profiles/18019/ https://web.archive.org/web/2025/https://www.ihf.info/about/players/profiles/{{Highlight|18019}}]
: [https://web.archive.org/web/20250120102452/https://www.ihf.info/about/players/profiles/18019/ https://web.archive.org/web/{{Highlight|20250120102452|lightblue}}/https://www.ihf.info/about/players/profiles/{{Highlight|18019}}]


; Other URL using same ID number
; Former URL (dead link)
: [https://www.ihf.info/competitions/women/307/26th-womens-world-championship/128037/players/18019 https://www.ihf.info/competitions/women/307/26th-womens-world-championship/128037/players/{{Highlight|18019}}]
: [https://www.ihf.info/about/players/profiles/18019 https://www.ihf.info/{{Highlight|about/players/profiles|pink}}/{{Highlight|18019}}]


; Current URL using same ID number (competition-specific)
=== Named parameters ===
: [https://www.ihf.info/competitions/women/307/26th-womens-world-championship/128037/players/18019 https://www.ihf.info/{{Highlight|competitions/women/307/26th-womens-world-championship/128037/players|pink}}/{{Highlight|18019}}]

=== Parameter as link text ===
; Usage
; Usage
: * {{{{BASEPAGENAME}} | id= 25143 | name= Santiago Baronetto }}
: * {{{{BASEPAGENAME}} | id= 25143 | name= Santiago Baronetto }}
: * {{{{BASEPAGENAME}} | 25143 | Santiago Baronetto | archive= 20250120102221 }}


; Output
; Output
:* {{ {{BASEPAGENAME}} | id= 25143 | name= Santiago Baronetto }}
:* {{ {{BASEPAGENAME}} | id= 25143 | name= Santiago Baronetto }}
:* {{ {{BASEPAGENAME}} | 25143 | Santiago Baronetto | archive= 20250120102221 }}


; URL in template
; Archived URLs in template
: [https://www.ihf.info/about/players/profiles/25143 https://www.ihf.info/about/players/profiles/{{Highlight|25143}}] ([https://web.archive.org/web/20250120102221/https://www.ihf.info/about/players/profiles/25143/ archive])
: [https://web.archive.org/web/2025/https://www.ihf.info/about/players/profiles/25143 https://web.archive.org/web/2025/https://www.ihf.info/about/players/profiles/{{Highlight|25143}}]
: [https://web.archive.org/web/20250120102221/https://www.ihf.info/about/players/profiles/25143 https://web.archive.org/web/{{Highlight|20250120102221}}/https://www.ihf.info/about/players/profiles/{{Highlight|25143}}]


; Other URL using same ID number
; Former URL (dead link)
: [https://www.ihf.info/competitions/men/308/27th-ihf-mens-world-championship-2021/22415/players/25143 https://www.ihf.info/competitions/men/308/27th-ihf-mens-world-championship-2021/22415/players/{{Highlight|25143}}]
: [https://www.ihf.info/about/players/profiles/25143 https://www.ihf.info/{{Highlight|about/players/profiles|pink}}/{{Highlight|25143}}]

; Current URL using same ID number (competition-specific)
: [https://www.ihf.info/competitions/men/308/27th-ihf-mens-world-championship-2021/22415/players/25143 https://www.ihf.info/{{Highlight|competitions/men/308/27th-ihf-mens-world-championship-2021/22415/players|pink}}/{{Highlight|25143}}]


=== No parameters and Wikidata property not defined ===
=== No parameters and Wikidata property not defined ===
Line 72: Line 88:
"default": "{{PAGENAMEBASE}}",
"default": "{{PAGENAMEBASE}}",
"type": "string",
"type": "string",
"required": false
},
"archive": {
"label": "Internet Archive date/time",
"description": "A number indicating the date and time of an archive at the Internet Archive website, such as 20250120102452 in https://web.archive.org/web/20250120102452/https://www.ihf.info/about/players/profiles/18019 (2025-01-20 10:24:52 archive of https://www.ihf.info/about/players/profiles/18019).",
"default": "2025",
"type": "number",
"required": false
"required": false
}
}
}
},
"paramOrder": [
"id",
"name",
"archive"
]
}
}
Line 96: Line 124:
[[Category:People and person external link templates]]
[[Category:People and person external link templates]]
[[Category:External link templates using Wikidata]]
[[Category:External link templates using Wikidata]]
[[Category:External link templates with archive parameter]]
[[Category:Templates that add a tracking category]]
[[Category:Templates that add a tracking category]]
}}
}}