Template:Model infobox: Difference between revisions
No edit summary |
No edit summary |
||
(100 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly><div class="infobox model"> | <includeonly><div class="model-infobox"> | ||
< | <div class="heading">[[{{PAGENAME}}]]</div> | ||
-->{{#if:{{{ | |||
<div style="width: 300px; display: flex; flex-direction: column;"> | |||
: {{{ | |||
}}<!-- | <div class="model-infobox-row"> | ||
--> | {{#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">{{#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 class="model-infobox-row"> | |||
{{#if:{{#explode:{{{hugging-face-uri|}}}|/|1}}| | |||
<div class="model-infobox-cell">'''User / Organization'''</div> | |||
<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 class="model-infobox-row"> | |||
{{#if:{{{creator|}}}| | |||
<div class="model-infobox-cell">'''Creator'''</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 class="model-infobox-row"> | |||
{{#if:{{{task|}}}| | |||
<div class="model-infobox-cell">'''Task'''</div> | |||
<div class="model-infobox-cell">{{#arraymap:{{{task|}}}|,|x|[[Has task::x]]}}</div> | |||
}} | |||
</div> | |||
<div class="model-infobox-row"> | |||
{{#if:{{{library|}}}| | |||
<div class="model-infobox-cell">'''Library'''</div> | |||
<div class="model-infobox-cell">{{#arraymap:{{{library|}}}|,|x|[[Has library::x]]}}</div> | |||
}} | |||
</div> | |||
<div class="model-infobox-row"> | |||
{{#if:{{{dataset|}}}| | |||
<div class="model-infobox-cell">'''Dataset'''</div> | |||
<div class="model-infobox-cell">{{#arraymap:{{{dataset|}}}|,|x|[[Has dataset::x]]}}</div> | |||
}} | |||
</div> | |||
<div class="model-infobox-row"> | |||
{{#if:{{{language|}}}| | |||
<div class="model-infobox-cell">'''Language'''</div> | |||
<div class="model-infobox-cell">{{#arraymap:{{{language|}}}|,|x|[[Has language::x]]}}</div> | |||
}} | |||
</div> | |||
<div class="model-infobox-row"> | |||
{{#if:{{{paper|}}}| | |||
<div class="model-infobox-cell">'''Paper'''</div> | |||
<div class="model-infobox-cell">{{#arraymap:{{{paper|}}}|,|x|[[Has paper::x]]}}</div> | |||
}} | |||
</div> | |||
<div class="model-infobox-row"> | |||
{{#if:{{{license|}}}| | |||
<div class="model-infobox-cell">'''License'''</div> | |||
<div class="model-infobox-cell">{{#arraymap:{{{license|}}}|,|x|[[Has license::x]]}}</div> | |||
}} | |||
</div> | |||
<div class="model-infobox-row"> | |||
{{#if:{{{related-to|}}}| | |||
<div class="model-infobox-cell">'''Related to'''</div> | |||
<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> | ||
</includeonly> | [[{{PAGENAME}}]] is a {{#arraymap:{{{type|}}}|,|x|[[x]]}} [[model]] used for {{#arraymap:{{{task|}}}|,|x|[[x]]}}. | ||
[[Category:Models]]</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 = | ||
| | | library = | ||
| | | dataset = | ||
| language = | |||
| paper = | |||
| license = | |||
| related-to = | | related-to = | ||
| | | all-tags = | ||
| all-lang-tags = | |||
}} | }} | ||
</pre> | </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 = }}