Template:Model infobox: Difference between revisions
No edit summary |
No edit summary |
||
(54 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly><div class="model"> | <includeonly><div class="model-infobox"> | ||
<div class="heading">[[{{PAGENAME}}]]</div> | <div class="heading">[[{{PAGENAME}}]]</div> | ||
<div style="width: | <div style="width: 300px; display: flex; flex-direction: column;"> | ||
<div class="model-infobox-row"> | <div class="model-infobox-row"> | ||
{{#if:{{{ | {{#if:{{{hugging-face-uri|}}}| | ||
<div class="model-infobox-cell">'''Hugging Face'''</div> | |||
<div class="model-infobox-cell">[[Has hf model url::https://huggingface.co/{{{hugging-face-uri}}}|{{{hugging-face-uri}}}]]</div> | |||
}} | |||
</div> | |||
<div class="model-infobox-row"> | |||
{{#if:{{{hugging-face-uri|}}}| | |||
<div class="model-infobox-cell">'''Name'''</div> | <div class="model-infobox-cell">'''Name'''</div> | ||
<div class="model-infobox-cell">{{# | <div class="model-infobox-cell">{{#if:{{#explode:{{{hugging-face-uri|}}}|/|1}}|[[Has model name::{{#explode:{{{hugging-face-uri|}}}|/|1}}]]|[[Has model name::{{#explode:{{{hugging-face-uri|}}}|/|0}}]]}}</div> | ||
}} | }} | ||
</div> | </div> | ||
<div class="model-infobox-row"> | <div class="model-infobox-row"> | ||
{{#if:{{{ | {{#if:{{#explode:{{{hugging-face-uri|}}}|/|1}}| | ||
<div class="model-infobox-cell">''' | <div class="model-infobox-cell">'''User / Organization'''</div> | ||
<div class="model-infobox-cell">{{# | <div class="model-infobox-cell">{{#if:{{#explode:{{{hugging-face-uri|}}}|/|1}}|[[Has model user-organization url::https://huggingface.co/{{#explode:{{{hugging-face-uri|}}}|/|0}}|{{#explode:{{{hugging-face-uri|}}}|/|0}}]]|}}</div> | ||
}} | }} | ||
</div> | </div> | ||
Line 21: | Line 28: | ||
{{#if:{{{creator|}}}| | {{#if:{{{creator|}}}| | ||
<div class="model-infobox-cell">'''Creator'''</div> | <div class="model-infobox-cell">'''Creator'''</div> | ||
<div class="model-infobox-cell">{{#arraymap:{{{creator|}}}|,|x|[[x]]}}</div> | <div class="model-infobox-cell">{{#arraymap:{{{creator|}}}|,|x|[[Has creator::x]]}}</div> | ||
}} | |||
</div> | |||
<div class="model-infobox-row"> | |||
{{#if:{{{type|}}}| | |||
<div class="model-infobox-cell">'''Type'''</div> | |||
<div class="model-infobox-cell">{{#arraymap:{{{type|}}}|,|x|[[Has model type::x]]}}</div> | |||
}} | }} | ||
</div> | </div> | ||
Line 28: | Line 42: | ||
{{#if:{{{task|}}}| | {{#if:{{{task|}}}| | ||
<div class="model-infobox-cell">'''Task'''</div> | <div class="model-infobox-cell">'''Task'''</div> | ||
<div class="model-infobox-cell">{{#arraymap:{{{task|}}}|,|x|[[x]]}}</div> | <div class="model-infobox-cell">{{#arraymap:{{{task|}}}|,|x|[[Has task::x]]}}</div> | ||
}} | }} | ||
</div> | </div> | ||
Line 35: | Line 49: | ||
{{#if:{{{library|}}}| | {{#if:{{{library|}}}| | ||
<div class="model-infobox-cell">'''Library'''</div> | <div class="model-infobox-cell">'''Library'''</div> | ||
<div class="model-infobox-cell">{{#arraymap:{{{library|}}}|,|x|[[x]]}}</div> | <div class="model-infobox-cell">{{#arraymap:{{{library|}}}|,|x|[[Has library::x]]}}</div> | ||
}} | }} | ||
</div> | </div> | ||
Line 42: | Line 56: | ||
{{#if:{{{dataset|}}}| | {{#if:{{{dataset|}}}| | ||
<div class="model-infobox-cell">'''Dataset'''</div> | <div class="model-infobox-cell">'''Dataset'''</div> | ||
<div class="model-infobox-cell">{{#arraymap:{{{dataset|}}}|,|x|[[x]]}}</div> | <div class="model-infobox-cell">{{#arraymap:{{{dataset|}}}|,|x|[[Has dataset::x]]}}</div> | ||
}} | }} | ||
</div> | </div> | ||
Line 49: | Line 63: | ||
{{#if:{{{language|}}}| | {{#if:{{{language|}}}| | ||
<div class="model-infobox-cell">'''Language'''</div> | <div class="model-infobox-cell">'''Language'''</div> | ||
<div class="model-infobox-cell">{{#arraymap:{{{language|}}}|,|x|[[x]]}}</div> | <div class="model-infobox-cell">{{#arraymap:{{{language|}}}|,|x|[[Has language::x]]}}</div> | ||
}} | }} | ||
</div> | </div> | ||
Line 56: | Line 70: | ||
{{#if:{{{paper|}}}| | {{#if:{{{paper|}}}| | ||
<div class="model-infobox-cell">'''Paper'''</div> | <div class="model-infobox-cell">'''Paper'''</div> | ||
<div class="model-infobox-cell">{{#arraymap:{{{paper|}}}|,|x|[[x]]}}</div> | <div class="model-infobox-cell">{{#arraymap:{{{paper|}}}|,|x|[[Has paper::x]]}}</div> | ||
}} | }} | ||
</div> | </div> | ||
<div class="model-infobox-row"> | <div class="model-infobox-row"> | ||
{{#if:{{{ | {{#if:{{{license|}}}| | ||
<div class="model-infobox-cell">''' | <div class="model-infobox-cell">'''License'''</div> | ||
<div class="model-infobox-cell">{{#arraymap:{{{ | <div class="model-infobox-cell">{{#arraymap:{{{license|}}}|,|x|[[Has license::x]]}}</div> | ||
}} | }} | ||
</div> | </div> | ||
<div class="model-infobox-row"> | <div class="model-infobox-row"> | ||
{{#if:{{{ | {{#if:{{{related-to|}}}| | ||
<div class="model-infobox-cell">''' | <div class="model-infobox-cell">'''Related to'''</div> | ||
<div class="model-infobox-cell">{{#arraymap:{{{ | <div class="model-infobox-cell">{{#arraymap:{{{related-to|}}}|,|x|[[Has related-to::x]]}}</div> | ||
}} | }} | ||
</div><span style="display:none!important;"> | |||
{{#if:{{#explode:{{{hugging-face-uri|}}}|/|1}}|[[Has model user-organization::{{#explode:{{{hugging-face-uri|}}}|/|0}}|{{#explode:{{{hugging-face-uri|}}}|/|0}}]]|}} | |||
{{#arraymap:{{{all-tags|}}}|,|x|[[Has all-tags::x]]}} | |||
{{#arraymap:{{{all-lang-tags|}}}|,|x|[[Has all-lang-tags::x]]}}</span> | |||
</div> | </div> | ||
</div> | </div> | ||
[[{{PAGENAME}}]] is a {{#arraymap:{{{type|}}}|,|x|[[x]]}} [[model]] used for {{#arraymap:{{{task|}}}|,|x|[[x]]}}. | |||
[[Category:Models]]</includeonly><noinclude> | |||
</includeonly><noinclude> | |||
==Usage== | ==Usage== | ||
Use this infobox for defining [[models]]. | Use this infobox for defining [[models]]. | ||
<pre> | <pre> | ||
{{ | {{Model infobox | ||
| | | hugging-face-uri = | ||
| creator = | | creator = | ||
| type = | |||
| task = | | task = | ||
| library = | | library = | ||
Line 91: | Line 107: | ||
| language = | | language = | ||
| paper = | | paper = | ||
| license = | |||
| related-to = | | related-to = | ||
| | | all-tags = | ||
| all-lang-tags = | |||
}} | }} | ||
</pre></noinclude> | </pre></noinclude> |
Latest revision as of 10:43, 18 May 2023
Usage
Use this infobox for defining models.
{{Model infobox | hugging-face-uri = | creator = | type = | task = | library = | dataset = | language = | paper = | license = | related-to = | all-tags = | all-lang-tags = }}