Difference between revisions of "Template:Resource"
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <noinclude>{{Resource | + | <noinclude><nowiki>{{Resource |
| OER Resource URL | | OER Resource URL | ||
| Meta Resource URL | | Meta Resource URL | ||
Line 8: | Line 8: | ||
| Language code | | Language code | ||
| Publication date | | Publication date | ||
− | |Tag | + | | Tag |
− | }} | + | }}</nowiki> |
</noinclude> | </noinclude> | ||
<includeonly> | <includeonly> | ||
− | '''[[ | + | '''[[Resources|OER Resources Home]]''' :: '''[http://wiki.creativecommons.org/Special:BrowseData/OER_Resources?_single Browse OER resources]''' :: '''[[Special:FormEdit/Resource|Add a resource]]''' :: '''[http://wiki.creativecommons.org{{localurl:{{PAGENAME}}|action=formedit}} <span style="color: #d60000;">Edit this page</span>]''' :: '''[{{fullurl:Special:ExportRDF/{{PAGENAME}}}} <span style="color: #d60000;">RDF</span>]''' |
<hr style="height: 1px; width: 100%; color: #F9F9F9;" /> | <hr style="height: 1px; width: 100%; color: #F9F9F9;" /> | ||
<!--__NOFACTBOX__--> | <!--__NOFACTBOX__--> | ||
Line 20: | Line 20: | ||
<div style="font-size: 1.2em; font-family: Georgia,serif;margin-top: 15px;">Repository Pages</div> | <div style="font-size: 1.2em; font-family: Georgia,serif;margin-top: 15px;">Repository Pages</div> | ||
{{#arraydefine: repos|{{{meta url|}}}}} | {{#arraydefine: repos|{{{meta url|}}}}} | ||
− | {{#ifeq: {{{meta url|}}}||[http:// | + | {{#ifeq: {{{meta url|}}}||[http://wiki.creativecommons.org{{localurl:{{PAGENAME}}|action=formedit}} Add repository]|{{#arraymap:{{{meta url|}}}|,|x|{{#set:Meta Resource URL=x}}}}{{#ifeq: {{{meta url|}}}|||{{#arrayprint:repos| |@@@@|<nowiki/><span style="padding-right:10px">'''[@@@@ {{#expr: {{#arraysearch:repos|@@@@}} + 1}}''']</span>}}}}}} |
<div style="font-size: 1.3em; font-family: Georgia,serif;margin-top: 5px;">License</div> | <div style="font-size: 1.3em; font-family: Georgia,serif;margin-top: 5px;">License</div> | ||
<div style="position: relative;"> | <div style="position: relative;"> | ||
− | {{#arraymap:{{{resource license|}}}|,| | + | {{#arraymap:{{{resource license|}}}|,|xyz|[[License short name::xyz| ]] [http://wiki.creativecommons.org/Special:SearchByProperty?title=Special:SearchByProperty&property=License_short_name&value={{anchorencode:xyz}} xyz]}} |
{{#switch: {{{resource license|}}} | {{#switch: {{{resource license|}}} | ||
| CC BY = [[Image:Cc-by.png|link=]] | | CC BY = [[Image:Cc-by.png|link=]] | ||
Line 46: | Line 46: | ||
</div> | </div> | ||
<div style="width: 58%; position: relative; float: right; text-align:left; padding: 8px;overflow: auto; height: 100%;"> | <div style="width: 58%; position: relative; float: right; text-align:left; padding: 8px;overflow: auto; height: 100%;"> | ||
− | <span style="font-size: 1.2em; font-family: Georgia,serif;overflow: visible;">Author(s):</span> <span style="font-size: 1em; font-family: Georgia,serif;overflow: visible;">{{#arraymap:{{{resource author|}}}|,| | + | <span style="font-size: 1.2em; font-family: Georgia,serif;overflow: visible;">Author(s):</span> <span style="font-size: 1em; font-family: Georgia,serif;overflow: visible;">{{#arraymap:{{{resource author|}}}|,|xyz|[[Resource author::xyz| ]] [http://wiki.creativecommons.org/Special:SearchByProperty?title=Special%3ASearchByProperty&property=Resource_author&value={{urlencode: xyz}} xyz]}}</span><br /> |
<div style="position: relative; float: left; background-color: transparent; text-align:left; padding-right: 5px; padding-left: 10px; font-size: 95%; min-width: 90%;overflow: visible;"> | <div style="position: relative; float: left; background-color: transparent; text-align:left; padding-right: 5px; padding-left: 10px; font-size: 95%; min-width: 90%;overflow: visible;"> | ||
− | [[Property:Affiliation|<span title="These are the organizations affiliated with this resource."><strong>Affiliation</strong></span>]]: {{#arraymap:{{{affiliation|}}}|,| | + | [[Property:Affiliation|<span title="These are the organizations affiliated with this resource."><strong>Affiliation</strong></span>]]: {{#arraymap:{{{affiliation|}}}|,|xyz|[[Affiliation::xyz| ]] [http://wiki.creativecommons.org/Special:SearchByProperty?title=Special%3ASearchByProperty&property=Affiliation&value={{urlencode: xyz}} xyz]}}<br /> |
[[Property:Resource type|<strong>Resource type</strong>]]: {{#arraymap:{{{resource type|}}}|,|x|[[Resource type::x| ]] [[:Special:SearchByProperty/Resource type/x|x]]}}<br /> | [[Property:Resource type|<strong>Resource type</strong>]]: {{#arraymap:{{{resource type|}}}|,|x|[[Resource type::x| ]] [[:Special:SearchByProperty/Resource type/x|x]]}}<br /> | ||
[[Property:Publication date|<strong>Publication date</strong>]]: {{#declare:Publication date=date}}{{{date|}}}<br /> | [[Property:Publication date|<strong>Publication date</strong>]]: {{#declare:Publication date=date}}{{{date|}}}<br /> | ||
[[Property:Language code|<span title="Language code"><strong>Language</strong></span>]]: {{#arraymap:{{{Language code|}}}|,|x|[[Language code::x| ]] [[:Special:SearchByProperty/Language code/x|x]]}}<br /> | [[Property:Language code|<span title="Language code"><strong>Language</strong></span>]]: {{#arraymap:{{{Language code|}}}|,|x|[[Language code::x| ]] [[:Special:SearchByProperty/Language code/x|x]]}}<br /> | ||
</div> | </div> | ||
− | <span style="font-size: 1.2em; font-family: Georgia,serif;">Tags:</span>{{#arraymap:{{{tags|}}}|,| | + | <span style="font-size: 1.2em; font-family: Georgia,serif;">Tags:</span>{{#arraymap:{{{tags|}}}|,|xyz|[[Tag::xyz| ]] [http://wiki.creativecommons.org/Special:BrowseData/OER_Resources?_single&Tag={{anchorencode:xyz}} xyz]}} |
</div> | </div> | ||
</div> | </div> |
Latest revision as of 19:48, 10 June 2010
{{Resource | OER Resource URL | Meta Resource URL | License short name | Resource author | Affiliation | Resource type | Language code | Publication date | Tag }}