Making \cite{ref} show last name of the first author

I am trying to obtain a non-standard citation style that includes only the last name of the first author, and the year it was published. As an example at the moment I have this:

myref.bib

@article{Stupid1999,

author = {Styleiz Stupid and Don Knowhy},
title = {Using totally random citation styles to write a thesis},
year = {1999},
volume = {11},
pages = {232-254},
journal = {Journal of Stupid Citation Styles}

}


On the tex file I cite with

A stupid random citation style was also used by \cite{Stupid1999}


The output is then:

A stupid random citation style was also used by [Stupid and Knowhy, 1999]


And what I want it to be:

A stupid random citation style was also used by [Stupid,1999]


Similar outputs to this without comma would also be appreciated, I just need that it does not include any second author or et al. in the in-line citation.

Additionally, on the references part I also need the output to be like

    [Stupid,1999] Stupid, S., Knowhy, D., Using totally random citation
styles to write a thesis. Journal of Stupid Citation
Styles, 1999, vol. 11, p. 232-254


The important part about this output is that it needs to be in this indentation style. The order of the citation can also be (authors, year, title, rest). At the moment I'm using \bibliographystyle{apalike} cause it was the only similar option, however this will not be suitable to conclude my work.

Kind regards

Example code with package list:

\documentclass[12pt,twoside]{book}

\usepackage{graphicx}
\usepackage{color}
\usepackage[latin1]{inputenc}
\usepackage[UKenglish]{babel}
\usepackage{utilmat}
\usepackage{margen}
\usepackage{pinlabel}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{rotating}
\usepackage{titlesec}
\usepackage{enumerate}
\usepackage{nccmath}
\usepackage{bigints}
\usepackage{caption}
\usepackage[a4paper]{geometry}
\usepackage{verbatim}  % Needed for the "comment" environment to make LaTeX comments
\usepackage{vector}  % Allows "\bvec{}" and "\buvec{}" for "blackboard" style bold vectors in maths
%\usepackage{epstopdf}
\usepackage[version=3]{mhchem}
\usepackage{enumerate}
\usepackage[official]{eurosym}
\usepackage{multirow}
\usepackage[font=small, labelfont=bf, justification=centering, format=hang]{caption}
\usepackage{hyperref}
\usepackage{array}
\usepackage{subfigure}
\usepackage{multicol}
\usepackage{rotating}
\usepackage{float}
%raggedrigh
\usepackage{mhchem}
\usepackage{fancyhdr}
\usepackage{booktabs}
\usepackage{breakcites}
%\usepackage[square]{natbib}
%\usepackage{apalike}
%\bibpunct{[}{]}{;}{a}{,}{-}
\usepackage{csquotes}
%
\usepackage[%
style=verbose
,backend=bibtex      % biber or bibtex
,backref=true
,style=authoryear    % Alphabeticalsch
,style=numeric-comp  % numerical-compressed
,sorting=nyt        % no sorting
,sortcites=true      % some other example options ...
,block=none
,indexing=false
,citereset=none
,isbn=true
,giveninits=true
,url=true
,doi=true            % prints doi
,natbib=true         % if you need natbib functions
]{biblatex}

\begin{document}
A stupid random citation style was also used by \cite{Stupid1999}

\printbibliography
\end{document}

Errors:

biblatex.sty error line 3350 Command \Rn already defined \endgroup} and multiple warnings

• Welcome to TeX SX! Do you use biblatex? – Bernard Dec 11 '18 at 12:52
• @Bernard I'm using bibtex at the moment, I've tried implementing biblatex, however I was not even able to print the bibliography. – José Cardoso Dec 11 '18 at 12:55
• If I comment out all the package I don't have and substitute the .bib files I also don't have, your code compiles reasonable fine. – samcarter_is_at_topanswers.xyz Dec 11 '18 at 13:28
• Off-topic: \usepackage{hyperref} should be one of the last packages you load. – samcarter_is_at_topanswers.xyz Dec 11 '18 at 13:28
• Also don't load the same packages multiple times – samcarter_is_at_topanswers.xyz Dec 11 '18 at 13:29

This answer has been completely reworked for biblatex 3.13 and biblatex-ext.

See the edit history for the version abusing the alphabetic style.

Thanks to https://github.com/plk/biblatex/issues/861 it is possible to properly suppress the "et al." even in authoryear styles (see Remove "et al." only from citation and maintain it in bibliography). This means we can use the authoryear style ext-authoryear as basis and employ introcite for the labels in the bibliography.

\documentclass[british]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{csquotes}

\usepackage[backend=biber,
bibstyle=ext-authortitle,
citestyle=ext-authoryear,
sorting=nyt,
mincitenames=1, maxcitenames=1,
nohashothers=true, nosortothers=true,
uniquelist=false,
introcite=label, dashed=false]{biblatex}

\DeclareFieldFormat{bbx@introcite}{\mkbibbrackets{#1}}

\DeclareOuterCiteDelims{parencite}{\bibopenbracket}{\bibclosebracket}

\DeclareNameFormat{labelname}{%
\ifcase\value{uniquename}%
\usebibmacro{name:family}
{\namepartfamily}
{\namepartgiven}
{\namepartprefix}
{\namepartsuffix}%
\or
\ifuseprefix
{\usebibmacro{name:given-family}
{\namepartfamily}
{\namepartgiveni}
{\namepartprefix}
{\namepartsuffixi}}
{\usebibmacro{name:given-family}
{\namepartfamily}
{\namepartgiveni}
{\namepartprefixi}
{\namepartsuffixi}}%
\or
\usebibmacro{name:given-family}
{\namepartfamily}
{\namepartgiven}
{\namepartprefix}
{\namepartsuffix}%
\fi}


• @samcarter I tried to apply both suggestions, however the bibliography is not printed due to a displayed error: The top-level auxiliary file: maint.aux I found no \citation commands---while reading file maint.aux I found no \bibdata command---while reading file maint.aux I found no \bibstyle command---while reading file maint.aux (There were 3 error messages) – José Cardoso Dec 11 '18 at 14:13